// ////////////////////////////////////////////////////////////////////////////////////////
// NAME: AboutActivity.java 
// AUTHOR: CDT Riley Mckenna, CDT Peter Lofreddo 
// LAST MODIFIED: 28 March 2012 
// DESCRIPTION: Contains code for the about tab of Nullwall
// LIMITATIONS: 
// CITATIONS: In code
// 
// ////////////////////////////////////////////////////////////////////////////////////////
package prototype.revision;

import android.os.Bundle;
import android.widget.TextView;

public class AboutActivity extends GenericActivity {
	private CommandLine shell;
	private TextView title;
	private TextView appName;
	private TextView appVersion;
	private TextView author;
	private TextView authorName;
	private TextView description;
	private TextView about;
	private TextView support;
	private TextView supportText;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		shell = new CommandLine();
		title = (TextView) findViewById(R.id.txtTitle);
		appName = (TextView) findViewById(R.id.txtAppName);
		appVersion = (TextView) findViewById(R.id.txtAppVersion);
		author = (TextView) findViewById(R.id.txtAuthor);
		authorName = (TextView) findViewById(R.id.txtAuthorName);
		description = (TextView) findViewById(R.id.txtDescription);
		about = (TextView) findViewById(R.id.txtAbout);
		support = (TextView) findViewById(R.id.txtSupport);
		supportText = (TextView) findViewById(R.id.txtSupportText);

		execute();
	}

	public void execute() {
		title.setText("Nullwall: A Firewall Application ");
		appName.setText("Nullwall");
		appVersion.setText("v1.0");
		author.setText("Authors: ");
		authorName.setText("Riley McKenna, Peter Lofreddo, and Dan Powell");
		description
				.setText("Nullwall v1.0 is an application firewall for the Linux based Android operating system.  This firewall will help maintain the overall security of the rooted mobile device and runs as a background service consuming minimum processing power.  Nullwall supports cross platform functionality and will function with both mobile and WiFi networks.  Nullwall determines malicious traffic based on white black lists set up by Nullwall or user interaction.");
		about.setText("Nullwall was created by CDT Peter Lofreddo, CDT Riley Mckenna, CDT Daniel Powell as an undergraduate Capstone under the direction of their advisors MAJ Christopher Morrell and LTC Fernando Maymi at the United States Military Academy, West Point.  ");
		support.setText("Support: ");
		supportText
				.setText("Support can be found on each tab by pressing the 'Settings' button on the Android then by pressing the '? Help' button. Or send an email to rileymckenna@gmail.com");
	}

}
